function btn() {
// @JavascriptInterface
// 调用的是 java.btnOnClick
// 因此 android的方法名 要与其相同
	java.btnOnClick("用户点签到")
}


function imgOnClick() {
	java.imgOnClick("用户点击图片");
}

function javaCallJsName(name, tel) {
	document.getElementById("name").innerHTML = name;
	document.getElementById("tel").innerHTML = tel;
	//alert("Android调用了Js");
}

function sleep(ms) {
	for (var t = Date.now(); Date.now() - t <= ms;);
}

function javaToJsCarMoney(money) {
	document.getElementById("money").innerHTML = money + "元";
	document.getElementById("select_success").innerHTML = "查询完成";
	document.getElementById("input_success").innerHTML = "";
}

function javaToJsCarMoney1(money) {
	document.getElementById("money").innerHTML = money + "元";
	document.getElementById("select_success").innerHTML = "查询完成";
}

function select_money() {
	var select = document.getElementById("what_car");
	var index = select.value;
	java.selectMoney(index);
}

function input_money() {
	var select = document.getElementById("what_car");
	var index = select.value;
	var select_money = document.getElementById("what_money");
	var index_money = select_money.value;
	java.input_money(index, index_money);
}

function javaToJsMoney(msg) {
	if (msg == "成功") {
		document.getElementById("input_success").innerHTML = "充值成功";
	} else {
		document.getElementById("input_success").innerHTML = "充值失败";
	}
	}
function select_money2(){
	var select = document.getElementById("what_car2");
	var index = select.value;
	console.log(index);
	var radi = document.getElementsByName("radio1");
	var ina = 1;
	for (var i = 0; i < radi.length; i++) {
		if(radi[i].checked == true){
			ina = radi[i].value;
		}
	}
	java.select_rec(index,ina);
}

